package cn.est.dao;

import cn.est.pojo.Brand;
import cn.est.pojo.BrandClassifyRelation;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface BrandMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Brand record);

    int insertSelective(Brand record);

    Brand selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Brand record);

    int updateByPrimaryKey(Brand record);

    /**
     * 根据Id查询没有下架的品牌
     * @param list
     * @return
     */
    List<Brand> listUpBrandByIds(List<BrandClassifyRelation> list);
}